﻿@model KurupiraApp.Models.Perfil

@{
    ViewBag.Title = "Edit";
}
<div class="container-fluid">
     <div class="row-fluid">
         <div class="span4">
             @RenderPage("partial/sidenavmenu.cshtml")
         </div>
         <div class="span8">
                @using (Html.BeginForm()) {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)

                <fieldset>
                    <legend>Perfil</legend>

                    @Html.HiddenFor(model => model.UsuarioID)
                    @Html.HiddenFor(model => model.meuDiretorio)
                    @Html.HiddenFor(model => model.fotoPerfil)

                    <label>Nome</label>                    
                    <div class="editor-field">
                        @Html.TextBox("nome", Model.nome ,new {Class = "input-xxlarge"})
                        @Html.ValidationMessageFor(model => model.nome)
                    </div>

                    <label>Sobre Nome</label>
                    <div class="editor-field">
                        @Html.TextBox("sobrenome", Model.sobrenome ,new {Class = "input-xxlarge"})
                        @Html.ValidationMessageFor(model => model.sobrenome)
                    </div>

                    <label>Apelido</label>
                    <div class="editor-field">
                        @Html.TextBox("apelido", Model.apelido ,new {Class = "input-xxlarge"})
                        @Html.ValidationMessageFor(model => model.apelido)
                    </div>
                    
        
                    <p>
                        <input type="submit" value="Atualizar" />
                    </p>
                </fieldset>
                }
         </div>
     </div>



<div>
    @Html.ActionLink("Voltar" , "view" , "usuario" , new{ id = Model.UsuarioID} , null)
</div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
